package lab02.test20;

public class Test {
    public static void main(String[] args) {
    String result = "wangliang11135";
    char tmp;
    for (int i = 0; i < result.length(); i++) {
        tmp = result.charAt(i);
        if (tmp >= '0' && tmp <= '9') {
            System.out.print(tmp);
        }
    }
}
}

